package cn.edu.java.stream.C终结操作;

import java.util.Arrays;
import java.util.List;

public class forEachDemo {
    public static void main(String[] args) {
        List<String> fruits = Arrays.asList("apple", "banana", "orange");
        fruits.stream().forEach(System.out::println);
    }
}
